public class CheckAccountTest {
    public static void main(String[] args) {
        CheckAccount c = new CheckAccount(1122,20000,0.045,2000);
        c.withdraw(5000);
        System.out.println("您的账户余额" + c.getBalance());
        System.out.println("你的可透支额" + c.getOverdraft());
        c.withdraw(18000);
        System.out.println("您的账户余额" + c.getBalance());
        System.out.println("你的可透支额" + c.getOverdraft());
        c.withdraw(20000);
        System.out.println("您的账户余额" + c.getBalance());
        System.out.println("你的可透支额" + c.getOverdraft());
    }
}
